/**
 * 
 */
package org.cuatrovientos.collectionexercice3;

/**
 * pag 82 collectionExercice3
 * this class respresents a student
 * 
 * @author daniel_ancin
 *
 */
public class Student {
	
	private String DNI;
	private String Name;
	private String Grade;
	
	/**
	 * default constructor
	 * @param dNI
	 * @param name
	 * @param grade
	 */
	public Student(String dNI, String name, String grade) {
		DNI = dNI;
		Name = name;
		Grade = grade;
	}
	
	/**
	 * @return the dNI
	 */
	public String getDNI() {
		return DNI;
	}

	/**
	 * @param dNI the dNI to set
	 */
	public void setDNI(String dNI) {
		DNI = dNI;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return Name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		Name = name;
	}

	/**
	 * @return the grade
	 */
	public String getGrade() {
		return Grade;
	}

	/**
	 * @param grade the grade to set
	 */
	public void setGrade(String grade) {
		Grade = grade;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Student [DNI=" + DNI + ", Name=" + Name + ", Grade=" + Grade
				+ "]";
	}
	
	
	

}
